package com.sharemarking.application.common.entity;

import java.util.Date;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.springframework.format.annotation.DateTimeFormat;

import com.sharemarking.application.common.BaseEntity;

@Entity
@Table(name="sys_note")
public class Note extends BaseEntity {
	
	@DateTimeFormat(pattern="yyyy-mm-dd")
	private Date createTime;
	private String content;
	
	@ManyToOne(cascade=CascadeType.PERSIST)
	private Employee employee2;
	
	
	public Employee getEmployee2() {
		return employee2;
	}

	public void setEmployee2(Employee employee2) {
		this.employee2 = employee2;
	}
	
	
	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	
	
	
	
	
	
}
